﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="FisheryPlatform.Web.Admin.Account.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagName="Style" TagPrefix="Menu" Src="~/Modules/Menu/StyleMenu.ascx" %>
<%@ Register TagName="Left" TagPrefix="Menu" Src="~/Modules/Menu/LeftMenu.ascx" %>
<%@ Register TagName="Header" TagPrefix="Menu" Src="~/Modules/Menu/HeaderMenu.ascx" %>
<%@ Register TagName="Footer" TagPrefix="Menu" Src="~/Modules/Menu/FooterMenu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <Menu:Style runat="server" ID="menuStyle" Title="Hi"></Menu:Style>
</head>
<body>
    <div class="wrapper">
        <Menu:Header runat="server" ID="menuHeader" />
        <div class="content">
            <Menu:Left runat="server" ID="menu_Left" />
            <div class="right">
                <div class="top">
                    用户管理>>所有用户</div>
                <div class="bottom">
                    <form id="form1" runat="server">
                    <table class="list" cellspacing="0" cellpadding="0">
                        <tr>
                            <th style="width: 120px;">
                                登录名
                            </th>
                            <th style="width: 120px;">
                                名字
                            </th>
                            <th style="width: 90px;">
                                手机
                            </th>
                            <th style="width: 120px;">
                                电话
                            </th>
                            <th style="width: 100px;">
                                状态
                            </th>
                            <th style="width: 80px;">
                                创建日期
                            </th>
                            <th style="width: 100px;">
                                操作
                            </th>
                        </tr>
                        <% foreach (var item in UsersList)
                           {%>
                        <tr>
                            <td>
                                <%= HttpUtility.HtmlEncode(item.LoginName) %>
                            </td>
                            <td>
                                <%= HttpUtility.HtmlEncode(item.RealName) %>
                            </td>
                            <td>
                                <%= HttpUtility.HtmlEncode(item.Mobile) %>
                            </td>
                            <td>
                                <%= HttpUtility.HtmlEncode(item.Phone) %>
                            </td>
                            <td>
                                <%= item.Status==1?"正常":"暂停"%>
                            </td>
                            <td>
                                <%=item.CreateDate.ToString() %>
                            </td>
                            <td>
                                <% if (new FisheryPlatform.Bussiness.LoginCookie.LoginUserInfo().AdminUserInfo.UserId == item.UserId)
                                   {%>
                                <a href="Profile.aspx">修改</a>
                                <%}
                                   else
                                   { %>
                                <a href="Edit.aspx?UserId=<%=item.UserId %>">修改</a>
                                <%} %>
                            </td>
                        </tr>
                        <%} %>
                    </table>
                    </form>
                </div>
            </div>
        </div>
        <Menu:Footer runat="server" ID="menuFooter" />
    </div>
</body>
</html>
